<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>网上商城</title>
	</head>
	<body>
		<div class="wraper">
			<jsp:include page="/common/header.jsp"></jsp:include>
			<div class="content">
				<jsp:include page="/pages/member/common/leftnav.jsp"></jsp:include>
				<div class="main">
					<div id="myinfor">
						<h2>
							密码修改
						</h2>
						<div style="color: blue; text-align: center;" id="msg" />
						${msg}
					</div>
					<script>
							setTimeout(function(){document.getElementById('msg').style.display='none';},'5000');
						</script>
					<form action="${ctx }/member/member!modifyPassword" method="post">

						<p>
							<label>
								原密码：
							</label>
							<input type="password" name="member.password" />
						</p>
						<p>
							<label>
								新密码：
							</label>
							<input type="password" name="newp" />
						</p>
						<p>
							<label>
								确认新密码：
							</label>
							<input type="password" name="newp2" />
						</p>
						<p class="btn_infor">
							<input type="submit" value="提交" />
						</p>
					</form>
					<div style="margin-top: 50px;">
						<h2>
							密码问题修改
						</h2>
					</div>
					<form action="${ctx }/member/member!modifyQAA" method="post">
						<c:if test="${not empty member.questions}">
							<p>
								<label>
									问题：
								</label>
								<span>${member.questions }</span>
							</p>
							<p>
								<label>
									问题答案：
								</label>
								<input type="text" name="member.answers" />
							</p>
						</c:if>
						<p>
							<label>
								新问题：
							</label>
							<input type="text" name="newq" />
						</p>
						<p>
							<label>
								新问题答案：
							</label>
							<input type="text" name="newa" />
						</p>
						<p class="btn_infor">
							<input type="submit" value="提交" />
						</p>
					</form>
				</div>
			</div>
			<jsp:include page="/common/footer.jsp"></jsp:include>
		</div>
	</body>
</html>